package www.alterzhang.cn.webservice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import www.alterzhang.cn.entity.User;
import www.alterzhang.cn.service.UserService;

/**
 * Created by Administrator on 2018/4/15 0015.
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/findByName")
    public User findByName(String name){
       return userService.findByName(name);
    }
}
